<template>
  <div>
    <!-- top -->
    <div class="topbar px-3 py-2 d-flex bg-black text-white ai-center">
      <div>
        <img src="../assets/logo.png" alt="" height="30">
      </div>
      <div class="ml-2 flex-1">
        <div>王者荣耀</div>
        <div class="fs-xxs text-gray">团队成就更多</div>
      </div>
      <button class="btn bg-primary fs-xs">立即下载</button>
    </div>
    <!-- nav -->
    <div class="navbar bg-primary py-2">
      <div class="nav jc-around text-white">
        <div class="nav-item active-inverse">
          <router-link to='/' tag="div">首页</router-link>
        </div>
        <div class="nav-item">
          <router-link to='/' tag="div">攻略中心</router-link>
        </div>
        <div class="nav-item">
          <router-link to='/' tag="div">赛事中心</router-link>
        </div>
      </div>
    </div>

    <router-view></router-view>
  </div>
</template>

<style lang="scss" scoped> 
.topbar {
  position: sticky;
  top:0;
  z-index: 999999;
}
</style>